#ifndef _H_DATA_
#define _H_DATA_
#include <string>
#include <iostream>
#include "block.h"

class Data{
public:
	std::string type;
	byte len;
	byte *data;
	Data(byte *bytes, byte len, std::string type);
	Data(std::string data);
	Data(int data);
	Data(float data);
	Data(const Data &d);
	const Data& operator = (const Data &d);
	~Data();
	bool operator < (const Data &d) const;

	bool operator > (const Data &d) const;

	bool operator == (const Data &d) const;

	bool operator <= (const Data &d) const;

	bool operator >= (const Data &d) const;

	bool operator != (const Data &d) const;

	friend std::ostream& operator<<(std::ostream& cout, const Data& d);
};

#endif